function fortune_hq(data) {
    //console.log('接收到数据:', data);

    // 提取盘口信息
    var perform = data.perform;
    var sector = data.sector;
    if (!perform || perform.length < 22) {
        // console.warn('perform 数据不完整');
        return null;
    }

    var bidAsk = {
        data: {
            sell: [], // 卖盘（ask）
            buy: [],   // 买盘（bid）

        }
    };

    // 卖五 -> 卖一（价格递减）
    for (var i = 0; i < 5; i++) {
        var price = perform[2 + i * 2];
        var volume = parseInt(perform[3 + i * 2]);
        bidAsk.data.sell.push({ price: parseFloat(price), volume: volume });
    }

    // 买一 -> 买五（价格递减）
    for (var i = 0; i < 5; i++) {
        var price = perform[12 + i * 2];
        var volume = parseInt(perform[13 + i * 2]);
        bidAsk.data.buy.push({ price: parseFloat(price), volume: volume });
    }
    bidAsk.data['weiBi'] = perform[0]
    bidAsk.data['weiCha'] = perform[1]
    bidAsk.data['outerVolume'] = perform[22]
    bidAsk.data['innerVolume'] = perform[23]
    bidAsk['sector'] = sector
    // console.log('盘口信息:', bidAsk);
    return JSON.stringify(bidAsk);
}